
package ch.hearc.coursJava.GUI.j2D.tableAnimerHSB.swings;

import java.awt.BorderLayout;

import ch.hearc.coursJava.GUI.frame.tools.JFrameBase;
import ch.hearc.coursJava.GUI.j2D.tableAnimerHSB.settings.Settings;

public class JFrameTableAnimer2 extends JFrameBase
	{

	/*------------------------------------------------------------------*\
	|*							Constructeurs							*|
	\*------------------------------------------------------------------*/

	public JFrameTableAnimer2()
		{
		this.settings = new Settings();

		this.createComponents();
		this.addComponents();
		this.setPropriete();
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/

	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/

	private void createComponents()
		{
		this.panelDessin = new JPanelDessin(settings);
		this.panelControl = new JPanelControlAnimation(panelDessin);
		}

	private void addComponents()
		{
		this.setLayout(new BorderLayout());

		this.add(panelDessin, BorderLayout.CENTER);
		this.add(panelControl, BorderLayout.SOUTH);
		}

	@Override
	protected void setPropriete()
		{
		super.setPropriete();

		this.setTitle("TableAnimer2");
		this.setSize(720, 576);
		}

	/*------------------------------------------------------------------*\
	|*							Attributs Private						*|
	\*------------------------------------------------------------------*/

	// Tools
	private JPanelDessin panelDessin;
	private JPanelControlAnimation panelControl;
	private Settings settings;

	}
